package com.ocom.common.request.payhandle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RechargeCardRequest {

    @Min(1L)
    @NotNull(message = "companyId 不能为空")
    Long companyId;
    @NotBlank(message = "machNo 不能为空")
    String machNo;
    @NotBlank(message = "tradeNo 不能为空")
    String tradeNo;
    @Min(1)
    @NotNull(message = "amount 不能为空")
    Integer amount;
    @NotBlank(message = "authCode 不能为空")
    String cardNum;

    @NotNull(message = "type 不能为空")
    Integer type;

    @Min(1)
    Integer consType=1;
}
